package com.sheepone.distributor.util;

/**
 * @author Miss.杨
 * @description
 * @since 2024/2/15 - 18:57
 */
public class NameGenerator {
    private static int DEFAULT_DISTRIBUTOR_NUM = 0;

    private static int DEFAULT_WORKER_STATION_NUM = 0;

    public static String generateDistributorName() {
        if (DEFAULT_DISTRIBUTOR_NUM++ == 0) {
            return "Distributor";
        }
        return "Distributor_" + DEFAULT_DISTRIBUTOR_NUM++;
    }

    public static String generateWorkerStationName() {
        if (DEFAULT_WORKER_STATION_NUM++ == 0) {
            return "WorkerStation";
        }
        return "WorkerStation_" + DEFAULT_WORKER_STATION_NUM++;
    }
}
